package com.zt.bus.constant;

import com.zt.constant.Constants;

/**
 * Created by Administrator on 2017/5/17.
 */
public class BusConstant extends Constants {

    public static class Wx {
        public static final String CODE = "code";
        public static final String OPEN_ID = "openId";
        public static final String RESPONSE_TRUE = "1";
        public static final String LANG = "zh_CN";
        public static final String TRADE_TYPE_MP = "JSAPI"; // 交易类型-公众号支付
        public static final String WX_MP_NOTIFY_URL = "http://investor.lingducapital.com/custom-bus/wxMpPay/getJSSDKCallbackData.do"; // 公众号支付回调
    }

    public static class LineType {
        public static final String CUSTOME_BUS = "1";// 定制公交
        public static final String EMPLOYEE_BUS = "2";// 职工专线
    }

    public static class LineStatus extends Status {
    }

    public static class LinePlanStatus {
        public static final String TO_BE_OPEN = "0";// 待开
        public static final String HAS_BEEN_OPENED = "1";// 已开
        public static final String OUTAGE = "2";// 停运
        public static final String DELETE = "3";// 删除
    }

    public static class LinePlanWorkingDepart extends Status {
    }

    public static class LinePlanHolidayDepart extends Status {
    }

    public static class StopType {
        public static final String BOARDING = "1";// 上车站点
        public static final String GET_OFF = "2";// 下车站点
        public static final String TRACK_POINT = "0";// 普通轨迹点
    }

    public static class StopStatus extends Status {

    }

    public static class LinePlanRefundStatus extends Status {
    }

    public static class LinePlanDiscountStatus extends Status {
    }

    public static class RefundStatus extends Status {
    }

    public static class RefundType {
        public static final String TIME_DISCOUNT_RATE = "1";// 发车前时间折扣率
        public static final String FIXED_COSTS = "2";// 固定费用
    }

    public static class DiscountType {
        public static final String DAYS_RATE = "1";// 累积天数
        public static final String PERIOD_RATE = "2";// 时间段
    }

    public static class DiscountStatus extends Status {
    }

    public static class DiscountDetailStatus extends Status {
    }

    public static class RefundDetailStatus extends Status {
    }

    public static class PaymentStatus {
        public static final String TO_BE_PAID = "1";// 待支付
        public static final String TO_BE_CONFIRMED = "2";// 支付待确认
        public static final String PAYMENT_SUCCESSFUL = "3";// 支付成功
        public static final String PAYMENT_FAILED = "4";// 支付失败
        public static final String PAYMENT_CANCEL = "5";// 支付取消
    }

    public static class OrderStatus extends PaymentStatus {
        public static final String TIMEOUT_OFF = "6";// 超时关闭
        public static final String CLOSED = "7";// 已关闭
    }

    public static class OrderDetailStatus extends OrderStatus {
        public static final String REFUND_APPLY = "8";// 申请退款
        public static final String REFUNDING = "9";// 退款处理中
        public static final String REFUND_SUCCESS = "10";// 退款成功
        public static final String REFUND_FAIL = "11";// 退款失败
        public static final String CHECKED = "12";// 已验票
        public static final String REMINDED = "13";// 已提醒
    }

    public static class OrderBackStatus {
        public static final String REFUND_APPLY = OrderDetailStatus.REFUND_APPLY;// 申请退款
        public static final String REFUNDING = OrderDetailStatus.REFUNDING;// 退款处理中
        public static final String REFUND_SUCCESS = OrderDetailStatus.REFUND_SUCCESS;// 退款成功
        public static final String REFUND_FAIL = OrderDetailStatus.REFUND_FAIL;// 退款失败
        public static final String REFUND_REJECT = "20";// 退款驳回，驳回之后订单明细改为OrderDetailStatus.PAYMENT_SUCCESSFUL
    }

    public static class MyOrderStatus {
        public static final String TO_BE_PAID = "1";// 待支付
        public static final String HAD_PAY = "2";// 已支付
        public static final String TO_REFUND = "3";// 退款记录
    }

    public static class PayPlatform {
        public static final String ALIPAY_WEB = "1";// 支付宝网页
        public static final String ALIPAY_APP = "2";// 支付宝APP
        public static final String WEIXIN_WEB = "3";// 微信网页
        public static final String WEIXIN_APP = "4";// 微信APP
        public static final String UNIONPAY_WEB = "5";// 银联网页
        public static final String UNIONPAY_APP = "6";// 银联APP
    }

    public static class PaymentType {
        public static final String BOOK = "1";// 预定
        public static final String BACK = "2";// 退订
    }
    
    public static class OrderBackType {
        public static final String BACK_USER = "1";// 乘客退订
        public static final String BACK_ADMIN = "2";// 管理员退订
    }

    public static class Cache {
        public static final String LINE = "_lineCache";
        public static final String DISCOUNT = "_discountCache";
        public static final String REFUND = "_refundCache";
        public static final String ORDER = "_orderCache";
        public static final String HOLIDAY = "_holidayCache";
        public static final String STOP = "_stopCache";
        public static final String QUSER = "_quserCache";
    }
}
